// rollup.config.js
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import terser from '@rollup/plugin-terser';

// ---cut-start---
/** @type {import('rollup').RollupOptions} */
// ---cut-end---
export default {
	input: 's-comic-reader.js',
	output: [
		{
			file: 'scr.min.js',
			format: 'iife'
		},
		{
			file: 'scr.min.cjs.js',
			format: 'cjs'
		}
	],
	plugins: [resolve(), babel({ babelHelpers: 'bundled' }), terser()]
};